<html>
<head><meta charset="utf-8"><title>quick fix on save · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/quick.20fix.20on.20save.html">quick fix on save</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="195166319"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/quick%20fix%20on%20save/near/195166319" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Coenen Benjamin <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/quick.20fix.20on.20save.html#195166319">(Apr 24 2020 at 09:46)</a>:</h4>
<p>Hello ! I'm wondering if it's possible to let rust-analyzer delete all my unused imports on save ? With a specific settings ? If not do you think it could be interesting and feasible to implement this kind of settings in rust-analyzer ?</p>



<a name="195166476"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/quick%20fix%20on%20save/near/195166476" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/quick.20fix.20on.20save.html#195166476">(Apr 24 2020 at 09:48)</a>:</h4>
<p>deleting unused imports requires that our name resolution and trait solving is 100% correct, otherwise it's going to be very annoying, and we're not there yet</p>



<a name="195166722"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/quick%20fix%20on%20save/near/195166722" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Coenen Benjamin <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/quick.20fix.20on.20save.html#195166722">(Apr 24 2020 at 09:50)</a>:</h4>
<p>Ok yes I understand. BTW as you're there <span class="user-mention" data-user-id="129457">@Florian Diebold</span>  I'm also wondering if you already wrote a blog post or something like that about how you implemented type inference in rust-analyzer. I would be very interested by this kind of content :D</p>



<a name="195168206"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/quick%20fix%20on%20save/near/195168206" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/quick.20fix.20on.20save.html#195168206">(Apr 24 2020 at 10:07)</a>:</h4>
<p>Oh, I don't know, I mostly just reimplemented things from rustc in a more simple form, and in many cases gradually learned why they are as complicated as they are in rustc ;)</p>



<a name="195168285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/quick%20fix%20on%20save/near/195168285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Coenen Benjamin <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/quick.20fix.20on.20save.html#195168285">(Apr 24 2020 at 10:08)</a>:</h4>
<p>Could be very interesting to read something on this subject :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>